package com.rf.richfitwheel.admin.sys.dao;

import com.rf.richfitwheel.admin.sys.model.Station;
import com.rf.richfitwheel.admin.sys.model.StationExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StationMapper {
    long countByExample(StationExample example);

    int deleteByExample(StationExample example);

    int deleteByPrimaryKey(String id);

    int insert(Station record);

    int insertSelective(Station record);

    List<Station> selectByExample(StationExample example);

    Station selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Station record, @Param("example") StationExample example);

    int updateByExample(@Param("record") Station record, @Param("example") StationExample example);

    int updateByPrimaryKeySelective(Station record);

    int updateByPrimaryKey(Station record);

    /**
     * 根据租户id获取岗位树
     * @param paramsNew
     * @return
     */
	List<Map<String, Object>> getAllStationTreeUtilsByTenantId(Map<String, Object> paramsNew);

    List<Map<String, Object>> getUserIdListByModuleAndStation(Map<String, Object> params);
}